package FunctionalInteface_Consumer;

public class oldWayConsumer {

	public static void main(String[] args) {
		
		String[] strArray = { "周杰伦,44", "吴彦祖,22", "陈冠希,33" };
		
		achieveConsumer a1 = new achieveConsumer();
		achieveConsumer2 a2 = new achieveConsumer2();
		
		for (String str : strArray) {
			a1.accept(str);
			a2.accept(str);
		}
		

	}

}
